home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 356 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: Re: RANDOM NUMBER GENERATOR
  5. Date: Thu, 04 Jan 96 00:07:56 GMT
  6. Organization: none
  7. Message-ID: <820714076snz@genesis.demon.co.uk>
  8. References: <ABg4lwmmK4@lh.ioffe.rssi.ru> <4cf1d2$1ts@oldfart.ecl.wustl.edu>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4cf1d2$1ts@oldfart.ecl.wustl.edu>
  15.            kln@news.hpn.org "Klaus L. Nordstrom" writes:
  16.  
  17. >If one uses <stdlib.h>, does one not automatically get access to
  18. >srand48() and drand48()? These routines generates good quality random
  19. >numbers with long periodicities.
  20.  
  21. No, they are standard Unix (XPG) functions but they are not standard C
  22. functions. For an ANSI conforming implementation they must *not* be
  23. defined in stdlib.h.
  24.  
  25. -- 
  26. -----------------------------------------
  27. Lawrence Kirby | fred@genesis.demon.co.uk
  28. Wilts, England | 70734.126@compuserve.com
  29. -----------------------------------------
  30.